// 引入插件
import Vue from "vue"
import Vuex from "vuex"
import home from "./modules/home"
import search from "./modules/search"
import detail from "./modules/detail"
import user from "./modules/user"
import trade from "./modules/trade"

// 注册插件
Vue.use(Vuex)

// 创建实例对象

const store = new Vuex.Store({
  // state,
  // actions,
  // mutations,
  // getters,
  modules: { home, search, detail, user, trade },
})

// 导出插件
export default store
